package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * PROJECT_NAME: sky-take-out
 * NAME: OrderDetailMapper
 *
 * @AUTHOR: zhang
 * DATE: 2023/12/13
 * DESCRIPTION :
 */
@Mapper
public interface OrderDetailMapper {
    /**
     * 添加订单详情
     * @param orderDetail
     */
    void insert(@Param("orderDetail") OrderDetail orderDetail);

    List<OrderDetail> selectOrdersByOrderId(@Param("ordersId") Long ordersId);
}
